/**
 * Copyright (c) 2020-2021 ThunderSoft
 * All Rights Reserved by Thunder Software Technology Co., Ltd and its affiliates.
 * You may not use, copy, distribute, modify, transmit in any form this file
 * except in compliance with ThunderSoft in writing by applicable law.
 *
 */
/**
 * @file    hal_iot_gpio.c
 * @brief   hal gpio funtion 
 * @details hal gpio funtion
 * @version 1.0
 * @author  Hu lei
 * @date    2021-03-05
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2021-03-05               Hu lei              Create it.
 *
 */
#include <stdio.h>
#include "iot_errno.h"
#include "iot_gpio.h"
#include "bl_gpio.h"
#include "bl_irq.h"
#include "bl602.h"
#include "bl602_gpio.h"

#define UNUSED(x)           ((void)(x))

unsigned int IoTGpioInit(unsigned int id)
{
    UNUSED(id);

    return IOT_SUCCESS;
}

unsigned int IoTGpioSetDir(unsigned int id, IotGpioDir dir)
{
    UNUSED(id);
    UNUSED(dir);

    return IOT_SUCCESS;
}

unsigned int IoTGpioGetDir(unsigned int id, IotGpioDir *dir)
{
    UNUSED(id);
    UNUSED(dir);

    return IOT_SUCCESS;  
}

unsigned int IoTGpioSetOutputVal(unsigned int id, IotGpioValue val)
{
    UNUSED(id);
    UNUSED(val);

    return IOT_SUCCESS;
}

unsigned int IoTGpioGetOutputVal(unsigned int id, IotGpioValue *val)
{
    UNUSED(id);
    UNUSED(val);

    return IOT_SUCCESS;
}

unsigned int IoTGpioGetInputVal(unsigned int id, IotGpioValue *val)
{
    UNUSED(id);
    UNUSED(val);

    return IOT_SUCCESS;
}

unsigned int IoTGpioRegisterIsrFunc(unsigned int id, IotGpioIntType intType, IotGpioIntPolarity intPolarity,
                                    GpioIsrCallbackFunc func, char *arg)
{
    UNUSED(id);
    UNUSED(intType);
    UNUSED(intPolarity);
    UNUSED(func);
    UNUSED(arg);

    return IOT_SUCCESS;
}

unsigned int IoTGpioUnregisterIsrFunc(unsigned int id)
{
    UNUSED(id);

    return IOT_SUCCESS;
}

unsigned int IoTGpioSetIsrMask(unsigned int id, unsigned char mask)
{
    UNUSED(id);
    UNUSED(mask);

    return IOT_SUCCESS;
}

unsigned int IoTGpioSetIsrMode(unsigned int id, IotGpioIntType intType, IotGpioIntPolarity intPolarity)
{
    UNUSED(id);
    UNUSED(intType);
    UNUSED(intPolarity);

    return IOT_SUCCESS;
}

unsigned int IoTGpioDeinit(unsigned int id)
{
    UNUSED(id);

    return IOT_SUCCESS;
}

